/**
 */
package flowchart.impl;

import flowchart.FlowchartPackage;
import flowchart.SingleConection;
import flowchart.symbols;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Single Conection</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link flowchart.impl.SingleConectionImpl#getArrow <em>Arrow</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public abstract class SingleConectionImpl extends symbolsImpl implements SingleConection {
	/**
   * The cached value of the '{@link #getArrow() <em>Arrow</em>}' reference.
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @see #getArrow()
   * @generated
   * @ordered
   */
	protected symbols arrow;

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	protected SingleConectionImpl() {
    super();
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	protected EClass eStaticClass() {
    return FlowchartPackage.Literals.SINGLE_CONECTION;
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	public symbols getArrow() {
    if (arrow != null && arrow.eIsProxy())
    {
      InternalEObject oldArrow = (InternalEObject)arrow;
      arrow = (symbols)eResolveProxy(oldArrow);
      if (arrow != oldArrow)
      {
        if (eNotificationRequired())
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, FlowchartPackage.SINGLE_CONECTION__ARROW, oldArrow, arrow));
      }
    }
    return arrow;
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	public symbols basicGetArrow() {
    return arrow;
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	public void setArrow(symbols newArrow) {
    symbols oldArrow = arrow;
    arrow = newArrow;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, FlowchartPackage.SINGLE_CONECTION__ARROW, oldArrow, arrow));
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
    switch (featureID)
    {
      case FlowchartPackage.SINGLE_CONECTION__ARROW:
        if (resolve) return getArrow();
        return basicGetArrow();
    }
    return super.eGet(featureID, resolve, coreType);
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public void eSet(int featureID, Object newValue) {
    switch (featureID)
    {
      case FlowchartPackage.SINGLE_CONECTION__ARROW:
        setArrow((symbols)newValue);
        return;
    }
    super.eSet(featureID, newValue);
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public void eUnset(int featureID) {
    switch (featureID)
    {
      case FlowchartPackage.SINGLE_CONECTION__ARROW:
        setArrow((symbols)null);
        return;
    }
    super.eUnset(featureID);
  }

	/**
   * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
   * @generated
   */
	@Override
	public boolean eIsSet(int featureID) {
    switch (featureID)
    {
      case FlowchartPackage.SINGLE_CONECTION__ARROW:
        return arrow != null;
    }
    return super.eIsSet(featureID);
  }

} //SingleConectionImpl
